package Basepractice.P2017_10_31.Je020402;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/11/4.
 */
public class If_else1 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("please input a number:");
        float score= scanner.nextFloat();
        if (score>=90&&score<=100){
            System.out.println("成绩为优秀");
        }
        else if (score>=80&&score<=89){
            System.out.println("成绩为良好");
        }
        else if (score>=70&&score<=79){
            System.out.println("成绩为中等");
        }
        else if (score>=60&&score<=69){
            System.out.println("成绩为及格");
        }
        else System.out.println("成绩为不及格");
    }
}
